home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Info-Mac 3
/
Info_Mac_1994-01.iso
/
Development
/
Information
/
Mac Programming Secrets 1.0.1
/
Chapter 06
/
Neat Stuff.h
< prev
next >
Wrap
C/C++ Source or Header
|
1992-05-19
|
1KB
|
36 lines
#include "QDOffscreen.h"
typedef struct {
WindowRecord windowRecord;
GWorldPtr offWorld;
Rect selectionRect;
Boolean antsOnTheMarch;
} MyWindowRecord, *MyWindowPtr;
void DoMarchingAnts(void);
void KillAnts(MyWindowPtr whichWindow);
void StartAnts(MyWindowPtr whichWindow);
void DoOpenWindow(void);
void DoCloseWindow(WindowPtr theWindow);
void DoDrawGrowIcon(WindowPtr theWindow);
void DoActivateWindow(WindowPtr theWindow, Boolean activating);
void DoUpdateWindow(EventRecord *theEvent);
Rect DoContentClick(EventRecord *theEvent, WindowPtr whichWindow);
Boolean PointInSelection(WindowPtr whichWindow, Point location);
void RefreshWindow(MyWindowPtr theWindow, Rect *theRect);
MyWindowPtr CreateBufferedWindow(short width, short height, short depth);
void ReadMacPaint(FSSpec* theFile, GWorldPtr buffer);
void DragSelectionFeedback(Point anchorPoint,
Point nextPoint,
Boolean turnItOn,
Boolean mouseDidMove);
void DragSelection(WindowPtr whichWindow, Point mouse);
void PointToCurrentRect(Point currentPoint);
void UpdateBuffers(void);
GWorldPtr CloneGWorld(GWorldPtr sourceGWorld);
#define kNewWindowID 128